<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>
            科室管理
        </title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/back/css/x-admin.css" media="all">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/back/css/pag.css" media="all">        
    </head>
    <body>
        <div class="x-nav">
            <span class="layui-breadcrumb">
              <a><cite>首页</cite></a>
              <a><cite>科室管理</cite></a>
            </span>
            <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"  href="${pageContext.request.contextPath}/back/javascript:location.replace(location.href);" title="刷新"><i class="layui-icon" style="line-height:30px">ဂ</i></a>
        </div>
        <div class="x-body">
          <form class="layui-form x-center" action="" style="width:85%">
                <div class="layui-form-pane">
                  <div class="layui-form-item">
                  </div>
                </div> 
            </form>
            <div class="tools">
    <ul class="toolbar">
    
    </ul>
    <span class="x-right" style="line-height:25px">共有科室：<span
				id="count">门</span></span>
  </div>
            <table class="tablelist">
                <thead>
                    <tr>
                        <th>
                            <input onclick="selectAll()" type="checkbox"   name="controlAll" style="controlAll" id="controlAll">
                        </th>
                        <th>
                            编号
                        </th>
                        <th>
                            部门名称
                        </th> 
                    </tr>
                </thead>
                <tbody>
                <!-- 判断是否为空数据 -->
				<c:if test="${list==null}">
					<jsp:forward page="${pageContext.request.contextPath}/outpatientservicetype"></jsp:forward>
				</c:if>
				<c:forEach items="${list}" var="outpatientservicetype">
					<tr>
						<td><input onclick="selectAll()" type="checkbox"
							name="controlAll" style="" id="controlAll"></td>
						<td>${outpatientservicetype.outpatientservicetypeid}</td>
						<td>${outpatientservicetype.outpatientservicetypename}</td>
					</tr>
				</c:forEach>
			</tbody>
            </table>
<div class="page"  v-show="show">
  <div class="pagelist"> <span class="jump">上一页</span> <span class="jump">1</span>  <span class="jump">下一页</span> <span class="jumppoint">跳转到：</span> <span class="jumpinp">
    <input type="text">
    </span> <span class="jump gobtn">GO</span> </div>
</div>
</div>
<br />
<br />
<br />
        <!-- <script src="./lib/layui/layui.js" charset="utf-8"></script>
        <script src="./js/x-layui.js" charset="utf-8"></script> 
<script src="js/jquery2.js" charset="utf-8"></script> 
<script src="js/js.js" charset="utf-8"></script> -->
        <script>
           
            </script>
            <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script type="text/javascript">
			$(function(){
				$.ajax({
					url : '${pageContext.request.contextPath}/countOutpatientservicetype',
					type : 'GET',
					success : function(result) {
						if (result != null) {
							$("#count").text(result);
						}
					}
				});
			});
		</script>
    </body>
</html>